package stdio.costa.imoca.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;

@Entity
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class PostcardTemplate extends UuidEntity implements Serializable {

	private static final long serialVersionUID = -3230542596210202690L;
	
	@ManyToOne(fetch = FetchType.EAGER)
	private DocumentTemplate front;
	
	@ManyToOne(fetch = FetchType.EAGER)
	private DocumentTemplate back;
	
	public PostcardTemplate() {
	}
	
	public PostcardTemplate(DocumentTemplate front, DocumentTemplate back) {
		this.front = front;
		this.back = back;
	}



	public DocumentTemplate getFront() {
		return front;
	}

	public void setFront(DocumentTemplate front) {
		this.front = front;
	}

	public DocumentTemplate getBack() {
		return back;
	}

	public void setBack(DocumentTemplate back) {
		this.back = back;
	}
}
